package register;

import net.socket.model.register.RegisterInfo;

/**
 * @Author: Qiao Hang
 * @CreateDate: 2021/3/25 下午5:50
 * @UpdateDate:
 * @Description:
 */
public class CasueRegisterInfo extends RegisterInfo {
    private String name;
    private Integer age;

    @Override
    public Object getIdentity() {
        return this.name;
    }

    @Override
    public boolean checkValid() {
        return getIdentity() != null && name != null && age != null;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }
}
